﻿/**
 * Peter
 * 
 * Created by: Peter Development Team
 *    http://peter.codeplex.com/
 * 
 * GNU General Public License version 2 (GPLv2)
 *    http://peter.codeplex.com/license
 *    
 *  This code is provided on an AS IS basis, with no WARRANTIES,
 *  CONDITIONS or GUARANTEES of any kind.
 *  
 **/

using System.Windows;

namespace Peter.Common.Services
{
   /// <summary>
   /// Interface for dialogs.
   /// </summary>
   public interface IDialog
   {
      /// <summary>
      /// Gets or Sets the data context.
      /// </summary>
      object DataContext { get; set; }

      /// <summary>
      /// The owner of this Window. Can be null.
      /// </summary>
      Window Owner { get; set; }

      /// <summary>
      /// Shows a modal dialog.
      /// </summary>
      /// <returns>Result of shown dialog.</returns>
      bool? ShowDialog ();
   }
}
